import * as React from 'react'
import * as ReactDOM from 'react-dom'
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleWare from 'redux-thunk';
import { Provider } from 'react-redux';
import  './index.less'
import app from './store/index'
import App from './page/app'



const middlewares = [thunkMiddleWare];
const store = applyMiddleware(...middlewares)(createStore)(app);



ReactDOM.render(
  <Provider store={store}>
    <App></App>
  </Provider>,
    document.querySelector('#app')
);

 